package dto;

import exception.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 *   新增/编辑课程计划参数模型
 * @author xiehaidong
 */
@Data
@ApiModel("新增/编辑课程计划参数模型")
public class SaveCourseTeachplanDto {
    @ApiModelProperty(value = "课程计划Id")

    private Long Id;
    @ApiModelProperty(value = "课程Id",required = true)
    @NotNull(message = "课程Id不能为空",groups = {ValidationGroups.insert.class})
    private Long courseId;
    @NotNull(message = "课程父级计划Id不能为空",groups = {ValidationGroups.insert.class})
    @ApiModelProperty(value = "课程父级计划Id",required = true)
    private Long parentid;
    @NotNull(message = "课程所在层级不能为空",groups = {ValidationGroups.insert.class})
    @ApiModelProperty(value = "所在层级",required = true)
    private Integer grade;
    @NotEmpty(message = "课程计划名称不能为空",groups = {ValidationGroups.insert.class})
    @ApiModelProperty(value = "课程计划名称",required = true)
    private String pname;
    /**
     * 课程类型:1视频、2文档
     */
    private String mediaType;

    /**
     * 课程发布标识
     */
    private Long coursePubId;


    /**
     * 是否支持试学或预览（试看）
     */
    private String isPreview;
}
